home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Utilities / ResGenie™ 1.0 / ResGenie™ / ResGenie™.rsrc / TEXT_205_movefileonert.txt < prev    next >
Encoding:
Text File  |  1993-08-02  |  1.6 KB  |  44 lines

  1. set cursor to watch
  2. if MovePathOne is MovePathTwo then
  3. beep
  4. close window MoveFileOne
  5. do restext("TEXT", "Exit", colorauthoringpath)
  6. end if
  7. if there is not a window movefiletwo then
  8. answer "Do you want to continue to copy resources to" &&¬¨
  9. movefiletwo &"?" with "Yes" or "New"
  10. if it is "Yes" then do restext("TEXT", "finishTwo", colorauthoringpath)
  11. else do restext ("TEXT", "MakeTwo", colorauthoringpath)
  12. do restext("TEXT", "Exit", colorauthoringpath)
  13. end if
  14. if word 1 of what is "Added:" then
  15. beep
  16. do restext("TEXT", "Exit", colorauthoringpath)
  17. end if
  18. put what into process
  19. repeat with x = 1 to the number of chars in process
  20. get char x of process
  21. if it is ";" then put "," into char x of process
  22. end repeat
  23. put item 1 of process into ResType
  24. if  ResType is "Empty" then do restext("TEXT", "Exit", colorauthoringpath)
  25. put item 3 of process into ResID
  26. CopyRes MovePathOne,MovePathTwo, ResType,ResID
  27. if it is "Cancel" then do restext("TEXT", "Exit", colorauthoringpath)
  28. if it is empty then do restext("TEXT", "Exit", colorauthoringpath)
  29. if it is "Yes" then do restext("TEXT", "Exit", colorauthoringpath)
  30. if it is "Error: Copy aborted" then do restext("TEXT", "Exit", colorauthoringpath)
  31. put the text of window MoveFileTwo into TheText
  32. put  process & return before line 1 of TheText
  33. put "Added: " before char 1 of line 1 of theTEXT
  34. set the text of window MoveFileTwo to TheText
  35. if there is a window "Resource List" then
  36. if  movefiletwo is "Current Stack" then
  37. set the text of window "Resource List" to theTEXT
  38. end if
  39. end if
  40. if there is a window holdstackname then
  41. if "Browse: " & movefiletwo is holdstackname then
  42. set the text of window holdstackname to theTEXT
  43. end if
  44. end if